package com.krain.ddbb.entity;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;

/**
 * Created by ex-kuangxiaomin101 on 2016-01-21.
 */
public class OrderDetailTypeBean implements Parcelable {

    private ArrayList<WorkNameBean> work_type;
    private ArrayList<PersonArdessBean> address;

    public ArrayList<WorkNameBean> getWork_type() {
        return work_type;
    }

    public void setWork_type(ArrayList<WorkNameBean> work_type) {
        this.work_type = work_type;
    }

    public ArrayList<PersonArdessBean> getAddress() {
        return address;
    }

    public void setAddress(ArrayList<PersonArdessBean> address) {
        this.address = address;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeTypedList(work_type);
        dest.writeTypedList(address);
    }

    public OrderDetailTypeBean() {
    }

    protected OrderDetailTypeBean(Parcel in) {
        this.work_type = in.createTypedArrayList(WorkNameBean.CREATOR);
        this.address = in.createTypedArrayList(PersonArdessBean.CREATOR);
    }

    public static final Creator<OrderDetailTypeBean> CREATOR = new Creator<OrderDetailTypeBean>() {
        public OrderDetailTypeBean createFromParcel(Parcel source) {
            return new OrderDetailTypeBean(source);
        }

        public OrderDetailTypeBean[] newArray(int size) {
            return new OrderDetailTypeBean[size];
        }
    };

    @Override
    public String toString() {
        return "OrderDetailTypeBean{" +
                "work_type=" + work_type +
                ", address=" + address +
                '}';
    }
}
